import { get, put_json } from '@/utils/request'
const baseUrl = '/admin/complaint/'

export function page(params) {
    return get(baseUrl + 'page', params)
}

export function updateStatus(id, status) {
    return put_json(`${baseUrl}updateStatus/${id}/${status}`)
}

export function detail(id) {
    return get(`${baseUrl}detail/${id}`)
}

export function commentPage(params) {
    return get('/admin/comment/page', params)
}
export function pageByAncestor(params) {
    return get('/admin/comment/pageByAncestor', params)
}